//临时信息
import { getHead_msgssage } from '@/api/head'
const state = {
  head_msg:null,  //头部临时信息
  pagemark:null,//当前页面的标志
}
const actions = {
    getHead_msg(context){
      //
      getHead_msgssage().then(msg=>{
        // console.log(msg)
        context.commit('sethead_msg',msg)
      })
       
    },
    
}

const getters = {

}
const mutations = {
  sethead_msg(state,msg){
    state.head_msg=msg;
  },
  setpagemark(state,mark){
    state.pagemark=mark
  }
}
export default {
  namespaced: true,
  state,
  actions,
  getters,
  mutations
}
// 向外暴露对象，可以自定义名字接收 export default

